<template>
  <div class="code">
    <pre>
      <code v-html="treeCode"></code>
    </pre>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue'
defineProps<{
  treeCode: string
}>()
</script>

<style scoped lang="less">
.code {
  padding: 0 10px 0;
  text-align: left;
  background: #f0f0f0;
}
</style>
